#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void swap(int c)
{
	for (int a = 1; a <= c; a++)
	{
		for (int b = a; b <= c; b++)
		{
			printf("%4d*%d=%2d", a, b, a * b);
		}
		printf("\n");
	}

}


int main()
{
	int a;
	scanf("%d", &a);
	swap(a);
}
















